package com.mdd.common.validate.topset;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import com.mdd.common.validator.annotation.IDMust;

/**
 * top设置参数
 * @author LikeAdmin
 */
@Data
@ApiModel("top设置更新参数")
public class TopSetUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "ID不能为空")
    @ApiModelProperty(value = "主键")
    private Integer id;

    @NotNull(message = "请输入天数")
    @ApiModelProperty(value = "天数")
    private Integer days;

    @NotNull(message = "请输入价格")
    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否显示: 0=否, 1=是")
    private Integer isShow;

}
